package com.ihealthway.all.interfaces.dwihealth.vo;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.List;

/**
 * Body Element
 * @author 凡梦星尘(elkan1788@gmail.com)
 */
@XmlRootElement(name = "Body")
public class BodyElement {

    private List<DWCustomer> customers;

    private List<DWServicePlan> servicePlans;

    private List<ErrorInfoElement> custInfoErrors;

    public BodyElement() {

    }

    @XmlElementWrapper(name = "Customer_Records")
    @XmlElement(name = "Customer_Record")
    public List<DWCustomer> getCustomers() {
        return customers;
    }

    public void setCustomers(List<DWCustomer> customers) {
        this.customers = customers;
    }

    @XmlElementWrapper(name = "ServPlan_Records")
    @XmlElement(name = "ServPlan_Record")
    public List<DWServicePlan> getServicePlans() {
        return servicePlans;
    }

    public void setServicePlans(List<DWServicePlan> servicePlans) {
        this.servicePlans = servicePlans;
    }

    //    @XmlElementWrapper(name = "")
    @XmlElement(name = "Error")
    public List<ErrorInfoElement> getCustInfoErrors() {
        return custInfoErrors;
    }

    public void setCustInfoErrors(List<ErrorInfoElement> custInfoErrors) {
        this.custInfoErrors = custInfoErrors;
    }
}
